﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class AttackRange : MonoBehaviour
{
    public GameObject attackRange;
    private RightClickMenu _rightClickMenu;
    

    private void Start()
    {
        _rightClickMenu = GetComponent<RightClickMenu>();
    }

    private void OnMouseDown()
    {
        if (!(_rightClickMenu.Menu.activeSelf))
        {
            attackRange.SetActive(true);
        }
    }
    
    private void OnMouseUp()
    {
        attackRange.SetActive(false);
    }
}
